﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000971 RID: 2417
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class INNHIDEAEDP : IMessage<INNHIDEAEDP>, IMessage, IEquatable<INNHIDEAEDP>, IDeepCloneable<INNHIDEAEDP>, IBufferMessage
	{
		// Token: 0x17001EA1 RID: 7841
		// (get) Token: 0x06006C7E RID: 27774 RVA: 0x00123168 File Offset: 0x00121368
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<INNHIDEAEDP> Parser
		{
			get
			{
				return INNHIDEAEDP._parser;
			}
		}

		// Token: 0x17001EA2 RID: 7842
		// (get) Token: 0x06006C7F RID: 27775 RVA: 0x0012316F File Offset: 0x0012136F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return INNHIDEAEDPReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001EA3 RID: 7843
		// (get) Token: 0x06006C80 RID: 27776 RVA: 0x00123181 File Offset: 0x00121381
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return INNHIDEAEDP.Descriptor;
			}
		}

		// Token: 0x06006C81 RID: 27777 RVA: 0x00123188 File Offset: 0x00121388
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public INNHIDEAEDP()
		{
		}

		// Token: 0x06006C82 RID: 27778 RVA: 0x0012319B File Offset: 0x0012139B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public INNHIDEAEDP(INNHIDEAEDP other) : this()
		{
			this.value_ = other.value_;
			this.key_ = other.key_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06006C83 RID: 27779 RVA: 0x001231CC File Offset: 0x001213CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public INNHIDEAEDP Clone()
		{
			return new INNHIDEAEDP(this);
		}

		// Token: 0x17001EA4 RID: 7844
		// (get) Token: 0x06006C84 RID: 27780 RVA: 0x001231D4 File Offset: 0x001213D4
		// (set) Token: 0x06006C85 RID: 27781 RVA: 0x001231DC File Offset: 0x001213DC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public float Value
		{
			get
			{
				return this.value_;
			}
			set
			{
				this.value_ = value;
			}
		}

		// Token: 0x17001EA5 RID: 7845
		// (get) Token: 0x06006C86 RID: 27782 RVA: 0x001231E5 File Offset: 0x001213E5
		// (set) Token: 0x06006C87 RID: 27783 RVA: 0x001231ED File Offset: 0x001213ED
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public string Key
		{
			get
			{
				return this.key_;
			}
			set
			{
				this.key_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
			}
		}

		// Token: 0x06006C88 RID: 27784 RVA: 0x00123200 File Offset: 0x00121400
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as INNHIDEAEDP);
		}

		// Token: 0x06006C89 RID: 27785 RVA: 0x00123210 File Offset: 0x00121410
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(INNHIDEAEDP other)
		{
			return other != null && (other == this || (ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(this.Value, other.Value) && !(this.Key != other.Key) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06006C8A RID: 27786 RVA: 0x00123268 File Offset: 0x00121468
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Value != 0f)
			{
				num ^= ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(this.Value);
			}
			if (this.Key.Length != 0)
			{
				num ^= this.Key.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06006C8B RID: 27787 RVA: 0x001232C9 File Offset: 0x001214C9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06006C8C RID: 27788 RVA: 0x001232D1 File Offset: 0x001214D1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06006C8D RID: 27789 RVA: 0x001232DC File Offset: 0x001214DC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Key.Length != 0)
			{
				output.WriteRawTag(34);
				output.WriteString(this.Key);
			}
			if (this.Value != 0f)
			{
				output.WriteRawTag(93);
				output.WriteFloat(this.Value);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06006C8E RID: 27790 RVA: 0x00123340 File Offset: 0x00121540
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Value != 0f)
			{
				num += 5;
			}
			if (this.Key.Length != 0)
			{
				num += 1 + CodedOutputStream.ComputeStringSize(this.Key);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06006C8F RID: 27791 RVA: 0x00123394 File Offset: 0x00121594
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(INNHIDEAEDP other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Value != 0f)
			{
				this.Value = other.Value;
			}
			if (other.Key.Length != 0)
			{
				this.Key = other.Key;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06006C90 RID: 27792 RVA: 0x001233EE File Offset: 0x001215EE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06006C91 RID: 27793 RVA: 0x001233F8 File Offset: 0x001215F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 34U)
				{
					if (num != 93U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Value = input.ReadFloat();
					}
				}
				else
				{
					this.Key = input.ReadString();
				}
			}
		}

		// Token: 0x04002964 RID: 10596
		private static readonly MessageParser<INNHIDEAEDP> _parser = new MessageParser<INNHIDEAEDP>(() => new INNHIDEAEDP());

		// Token: 0x04002965 RID: 10597
		private UnknownFieldSet _unknownFields;

		// Token: 0x04002966 RID: 10598
		public const int ValueFieldNumber = 11;

		// Token: 0x04002967 RID: 10599
		private float value_;

		// Token: 0x04002968 RID: 10600
		public const int KeyFieldNumber = 4;

		// Token: 0x04002969 RID: 10601
		private string key_ = "";
	}
}
